import java.io.PrintStream;
import java.util.Random;
import org.rsbot.script.methods.Keyboard;

class YakAttack$YakAttackAntiBan
  implements Runnable
{
  private YakAttack$YakAttackAntiBan(YakAttack paramYakAttack)
  {
  }

  public void run()
  {
    Random localRandom = new Random();
    while (this.this$0.isActive())
      try {
        if (localRandom.nextInt(Math.abs(15)) == 0) {
          char[] arrayOfChar1 = { '%', '\'' };

          char[] arrayOfChar2 = { '(', '&' };

          char[] arrayOfChar3 = { '%', '\'', '&', '&' };

          int i = localRandom.nextInt(Math.abs(2));
          int j = localRandom.nextInt(Math.abs(2));
          int k = localRandom.nextInt(Math.abs(4));

          if (localRandom.nextInt(Math.abs(3)) == 0) {
            YakAttack.access$100(this.this$0).pressKey(arrayOfChar1[j]);
            Thread.sleep(localRandom.nextInt(Math.abs(300)));
            YakAttack.access$200(this.this$0).pressKey(arrayOfChar2[i]);
            Thread.sleep(localRandom.nextInt(Math.abs(300)));
            YakAttack.access$300(this.this$0).releaseKey(arrayOfChar2[i]);
            Thread.sleep(localRandom.nextInt(Math.abs(300)));
            YakAttack.access$400(this.this$0).releaseKey(arrayOfChar1[j]);
          } else {
            YakAttack.access$500(this.this$0).pressKey(arrayOfChar3[k]);
            if (k > 1)
              Thread.sleep(localRandom.nextInt(Math.abs(300)));
            else {
              Thread.sleep(localRandom.nextInt(Math.abs(400)));
            }
            YakAttack.access$600(this.this$0).releaseKey(arrayOfChar3[k]);
          }
        } else {
          Thread.sleep(localRandom.nextInt(Math.abs(1800)));
        }
      } catch (Exception localException) {
        System.out.println("AntiBan error detected!");
      }
  }
}